<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">

    <div class="row">
        <div style="background: #ffffff;">

            <form class="form-horizontal" name="addEventForm" novalidate>
                <div class="panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><strong>新增活动</strong></h3>
                        <!--<ul class="panel-controls">-->
                        <!--<li><a href="javascript:void(0)" class="panel-remove"><span class="fa fa-times"></span></a></li>-->
                        <!--</ul>-->
                    </div>
                    <div class="panel-body panel-dialog">
                        <p>请按照提示输入活动的各项信息。</p>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">活动名称</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="name" ng-model="newEvent.name" required/>
                                </div>
                                <span class="help-block" ng-show="(addEventForm.name.$untouched && !addEventForm.$submitted) || addEventForm.name.$valid">请输入课程任务的标题</span>
                                <div ng-show="(addEventForm.name.$touched || addEventForm.$submitted ) && addEventForm.name.$invalid">
                                    <span class="error-block" ng-show="addEventForm.name.$error.required">必须要输入活动的名称</span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">类型</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="type" ng-model="newEvent.type" required/>
                                </div>
                                <span class="help-block" ng-show="(addEventForm.type.$untouched && !addEventForm.$submitted) || addEventForm.type.$valid">请输入类型</span>
                                <div ng-show="(addEventForm.type.$touched || addEventForm.$submitted ) && addEventForm.type.$invalid">
                                    <span class="error-block" ng-show="addEventForm.type.$error.required">必须要输入类型</span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">URL</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="url" ng-model="newEvent.url" required/>
                                </div>
                                <span class="help-block" ng-show="(addEventForm.url.$untouched && !addEventForm.$submitted) || addEventForm.url.$valid">请输入活动的URL</span>
                                <div ng-show="(addEventForm.url.$touched || addEventForm.$submitted ) && addEventForm.url.$invalid">
                                    <span class="error-block" ng-show="addEventForm.url.$error.required">必须要输入活动的URL</span>
                                </div>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">内容</label>
                            <div class="col-md-6 col-xs-12">
                                <textarea class="form-control" rows="5" ng-model="newEvent.content"></textarea>
                                <span class="help-block">请输入活动的描述</span>
                            </div>
                        </div>

                    </div>
                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-danger" ng-click="cancel()"><i class="fa fa-times"></i>取消</button>
                        <button class="btn btn-info" ng-click="submit()"><i class="fa fa-check"></i>确定</button>
                    </div>
                </div>
            </form>

        </div>
    </div>

</div>
<!-- END PAGE CONTENT WRAPPER -->